package com.awenhui.demo.feign.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 贵阳房产响应
 *
 * @author zxiaozhou
 * @date 2021-06-14 11:17
 * @since JDK1.8
 */
@Getter
@Setter
@ToString
@EqualsAndHashCode
@Accessors(chain = true)
@ApiModel
public class GyfcResult<T> implements Serializable {
    private static final long serialVersionUID = -1643349173339384014L;
    /**
     * 成功标识:true成功
     */
    @JsonProperty(value = "Success")
    private boolean success;

    /**
     * 响应编码:200成功
     */
    @JsonProperty(value = "Code")
    private int code;

    /**
     * 错误消息
     */
    @JsonProperty(value = "Message")
    private String message;

    /**
     * 成功数据
     */
    @JsonProperty(value = "Data")
    private T data;

}
